package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * banner图对象 banner
 * 
 * @author ruoyi
 * @date 2020-10-16
 */
public class Banner extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Long id;

    /** 图片分类 */
    @Excel(name = "图片分类")
    private Integer type;

    /** 图片地址 */
    @Excel(name = "图片地址")
    private String url;

    /** 展示顺序 */
    @Excel(name = "展示顺序")
    private Integer ordernum;

    /** 图片标题 */
    @Excel(name = "图片标题")
    private String imgTitle;

    /** 图片跳转地址 */
    @Excel(name = "图片跳转地址")
    private String imgUrl;

    /** 图片状态(0隐藏，1展示) */
    @Excel(name = "图片状态(0隐藏，1展示)")
    private Integer imgState;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setType(Integer type) 
    {
        this.type = type;
    }

    public Integer getType() 
    {
        return type;
    }
    public void setUrl(String url) 
    {
        this.url = url;
    }

    public String getUrl() 
    {
        return url;
    }
    public void setOrdernum(Integer ordernum) 
    {
        this.ordernum = ordernum;
    }

    public Integer getOrdernum() 
    {
        return ordernum;
    }
    public void setImgTitle(String imgTitle) 
    {
        this.imgTitle = imgTitle;
    }

    public String getImgTitle() 
    {
        return imgTitle;
    }
    public void setImgUrl(String imgUrl) 
    {
        this.imgUrl = imgUrl;
    }

    public String getImgUrl() 
    {
        return imgUrl;
    }
    public void setImgState(Integer imgState) 
    {
        this.imgState = imgState;
    }

    public Integer getImgState() 
    {
        return imgState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("type", getType())
            .append("url", getUrl())
            .append("ordernum", getOrdernum())
            .append("imgTitle", getImgTitle())
            .append("imgUrl", getImgUrl())
            .append("createTime", getCreateTime())
            .append("updateTime", getUpdateTime())
            .append("imgState", getImgState())
            .toString();
    }
}
